﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEET.StaticAnalisys;
using CommonInterfaces.Models;
using LEET.CommonInterfaces.Models;

namespace StaticAnalisys
{
    public class Node : INode
    {
        public INode Parent
        {
            get;
            internal set;
        }

        public string Name
        {
            get;
            private set;
        }

        public string InstructionType
        {
            get;
            private set;
        }

        public static Node Apply(IInstruction instruction)
        {
            Node node = new Node();
            node.Name = instruction.Name;
            node.InstructionType = instruction.InstructionType;
            return node;
        }
    }
}
